home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / mach / err_mach.sub < prev    next >
Text File  |  1992-10-06  |  4KB  |  128 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie the
  24.  * rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    err_mach_ipc.sub,v $
  29.  * Revision 2.3  92/04/01  19:38:05  rpd
  30.  *     Added MIG_DESTROY_REQUEST.
  31.  *     [92/03/09            rpd]
  32.  * 
  33.  * Revision 2.2  92/01/16  00:09:05  rpd
  34.  *     Moved from user collection to mk collection.
  35.  * 
  36.  * Revision 2.3  91/08/29  15:51:30  rpd
  37.  *     Added MIG_SERVER_DIED.
  38.  *     [91/08/21            rpd]
  39.  * 
  40.  * Revision 2.2  91/03/27  16:05:37  mrt
  41.  *     First checkin
  42.  * 
  43.  * Revision 2.2  91/03/18  17:39:03  rpd
  44.  *     Created.
  45.  *     [91/03/18            rpd]
  46.  * 
  47.  */
  48. /*
  49.  *    File:    err_mach_ipc.sub
  50.  *    Author:    Richard Draves, Carnegie Mellon University
  51.  *    Date:    Jan, 1990
  52.  *
  53.  *    Error string definitions for the new Mach IPC
  54.  */
  55.  
  56. static char * err_codes_mach_send[] = {
  57.     /* 0 */    "(ipc/send) no error",
  58.     /* 1 */    "(ipc/send) send in progress",
  59.     /* 2 */    "(ipc/send) invalid data",
  60.     /* 3 */    "(ipc/send) invalid destination port",
  61.     /* 4 */    "(ipc/send) timed out",
  62.     /* 5 */    "(ipc/send) will notify",
  63.     /* 6 */    "(ipc/send) notify in progress",
  64.     /* 7 */    "(ipc/send) interrupted",
  65.     /* 8 */    "(ipc/send) msg too small",
  66.     /* 9 */    "(ipc/send) invalid reply port",
  67.        /* 10 */    "(ipc/send) invalid port right",
  68.        /* 11 */    "(ipc/send) invalid notify port",
  69.        /* 12 */    "(ipc/send) invalid memory",
  70.        /* 13 */    "(ipc/send) no msg buffer",
  71.        /* 14 */    "(ipc/send) no notify possible",
  72.        /* 15 */    "(ipc/send) invalid msg-type",
  73.        /* 16 */    "(ipc/send) invalid msg-header",
  74. };
  75.  
  76. static char * err_codes_mach_rcv[] = {
  77.     /* 0 */    "(ipc/rcv) no error",
  78.     /* 1 */    "(ipc/rcv) receive in progress",
  79.     /* 2 */    "(ipc/rcv) invalid name",
  80.     /* 3 */    "(ipc/rcv) timed out",
  81.     /* 4 */    "(ipc/rcv) msg too large",
  82.     /* 5 */    "(ipc/rcv) interrupted",
  83.     /* 6 */    "(ipc/rcv) port changed",
  84.     /* 7 */    "(ipc/rcv) invalid notify port",
  85.     /* 8 */    "(ipc/rcv) invalid data",
  86.     /* 9 */    "(ipc/rcv) port died",
  87.        /* 10 */    "(ipc/rcv) port in set",
  88.        /* 11 */    "(ipc/rcv) header error",
  89.        /* 12 */    "(ipc/rcv) body error",
  90. };
  91.  
  92. static char     * err_codes_mach_mig[] = {
  93.     /* 0 */    "(ipc/mig) client type check failure",
  94.     /* 1 */    "(ipc/mig) wrong reply message ID",
  95.     /* 2 */    "(ipc/mig) server detected error",
  96.     /* 3 */    "(ipc/mig) bad request message ID",
  97.     /* 4 */    "(ipc/mig) server type check failure",
  98.     /* 5 */    "(ipc/mig) no reply should be sent",
  99.     /* 6 */    "(ipc/mig) server raised exception",
  100.     /* 7 */    "(ipc/mig) array not large enough",
  101.     /* 8 */    "(ipc/mig) server died",
  102.     /* 9 */ "(ipc/mig) destroy request with no reply",
  103. };
  104.  
  105. /*    err_mach_ipc subsystems          */
  106. static struct error_subsystem err_mach_ipc_sub[] = {
  107.     /* ipc/0; */
  108.     {
  109.         "(ipc/send)",
  110.         errlib_count(err_codes_mach_send),
  111.         err_codes_mach_send,
  112.     },
  113.     /* ipc/1; */
  114.     {
  115.         "(ipc/rcv)",
  116.         errlib_count(err_codes_mach_rcv),
  117.         err_codes_mach_rcv,
  118.  
  119.     },
  120.     /* ipc/2 */
  121.     {
  122.         "(ipc/mig)",
  123.         errlib_count(err_codes_mach_mig),
  124.         err_codes_mach_mig,
  125.     },
  126.  
  127. };
  128.